﻿@model MvcDeviceManager.Models.LogIn

@{
    ViewBag.Title = "用户登陆";
    Layout = "~/Views/_ViewLogin.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@Request.Params["error"]
@using (Html.BeginForm()) {
    <fieldset>
        <legend>用户登陆</legend>
        @ViewBag.error
        <div class="editor-label">
            @Html.LabelFor(model => model.UserName):
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password):
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RememberMe):
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RememberMe)
            @Html.ValidationMessageFor(model => model.RememberMe)
        </div>

        <p>
            <input type="submit" value="登陆" />
            @Html.ValidationSummary(true)
        </p>
    </fieldset>
}

